package com.springcloud.dao;

import com.entities.Payment;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @program: springcloud
 * @description:
 * @author: zfy
 * @create: 2020-08-16 10:10
 */
@Mapper
public interface paymentdao {
    @Select("select * from payment where id=#{id}")
    public Payment selectByid(@Param("id") String id);


    @Insert("INSERT INTO payment (payment) VALUES(#{payment})")
    public int Insert(String payment);
}